package day4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Triangle {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.printf("三角形的高度：");
        int k = in.nextInt();
        for (int i = 1; i <= k; i++) {//行数
            for (int j = 1; j <= k - i+1; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
